<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link
      rel="stylesheet"
      href="https://unpkg.com/swiper/swiper-bundle.min.css"
    />
    <style>
        .swiper-container {
          width: 100vw;
          height: 20vh;
          padding: 0 0.32rem;
          margin-bottom: 0.04rem;
          overflow: hidden;
        }
        .swiper-container .swiper-wrapper {
          display: inline-flex;
          /* height: 100%; */
          /* overflow: hidden; */
        }
        .swiper-container .swiper-wrapper .swiper-slide{
          /* position: relative; */
          /* flex: 0 0 100%; */
          width: 100vw;
          height: 20vh;
          border-radius: 0.293333rem;
          /* overflow: hidden; */
        }
       img {
            width: 100vw;
          height: 20vh;
          /* width: 100%;
          position: absolute;
          bottom: 0;
          left: 0; */
        }
    </style>
</head>
<body>

   
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide">
                <img src="./img/1.jpg" alt="" srcset="">
            </div>
            <div class="swiper-slide">
                <img src="./img/2.jpg" alt="" srcset="">
            </div>
            <div class="swiper-slide">
                <img src="./img/3.jpg" alt="" srcset="">
            </div>
            <div class="swiper-slide">
                <img src="./img/4.jpg" alt="" srcset="">
            </div>
            <div class="swiper-slide">
                <img src="./img/5.jpg" alt="" srcset="">
            </div>
        </div>
        <div class="swiper-pagination"></div>
    </div>
    <script src="https://unpkg.com/swiper/swiper-bundle.js"></script>
    <script>
        var mySwiper = new Swiper('.swiper-container', {
            direction: 'horizontal', // 垂直切换选项
            loop: true, // 循环模式选项
            autoplay: true,
            // 如果需要分页器
            pagination: {
                el: '.swiper-pagination',
            },
        })
    </script>
</body>
</html>